{% macro page(pagerObj,ctx) %}
<div class="pager clearfix">
    {% for i in range(1,pagerObj.pageCount+1) %}
        <div class="pager-item">
            {% if pagerObj.page == i %}
            <span>{{i}}</span>
            {% else %}
            <a href="{{ctx._path}}{{'p'+i if i!=1 else ''}}">{{i}}</a>
            {% endif %}
        </div>
    {% endfor %}
</div>
{% endmacro%}